home *** CD-ROM | disk | FTP | other *** search
- Path: news.drexel.edu!dunx1!st918h5w
- From: st918h5w@dunx1.ocs.drexel.edu (Jonathan Juniman)
- Newsgroups: comp.lang.c++
- Subject: class declaration question
- Date: 20 Jan 1996 01:50:30 GMT
- Organization: Drexel University
- Message-ID: <4dphp6$1bp@noc2.drexel.edu>
- NNTP-Posting-Host: dunx1.ocs.drexel.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Is it necessary to do this:
-
- class SomeClass
- {
- public:
- void Somefunction(int SomeParameter);
- }
-
- or is it just as legal to do this:
- class SomeClass
- {
- public:
- void SomeFunction(int);
- }
-
- The latter seems to be the convention, but why does the compiler need to
- know the name of SomeFunction's argument? Isn't it sufficient to know the
- type of Somefunction's argument (namely, int)?
-
- Please reply by e-mail. PS; thanks to all the people who answered my
- overloaded operator question.
-
- Jon
-